<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'My Console Application',
	// application components

	// 自动载入的模型和组件类
	'import'=>array(
			'application.models.*',//载入"application/models/"文件夹下的所有模型类
			'application.components.*',//载入"application/components/"文件夹下的所有应用组件类
			'application.extensions.*',//载入"application/extensions/"文件夹下的所有应用组件类
	),

	'components'=>array(
			// uncomment the following to use a MySQL database
			'db'=>array(
					'connectionString' => 'mysql:host=192.168.1.144;dbname=zyd',//连接mysql数据库
					'emulatePrepare' => true,
					'username' => 'root',//MySQL数据库用户名
					'password' => '123456',//MySQL数据库用户密码
					'charset' => 'utf8',//MySQL数据库编码
					'tablePrefix' => 'zd_', //MySQL数据库表前缀
					'enableProfiling'=>true,
					'enableParamLogging'=>true,
			),
			//加载Email组件
			'mailer' => array(
					'class'     => 'application.extensions.mailer.EMailer',
			),
	),
);